package com.bwf.servlet;

import java.util.Locale;
import java.util.UUID;

/**
 * @Version v1.0
 * @Description: TODO
 * @Author ZHANZHONGXIN
 * @Date 2022/6/14 11:01
 * @Copyright 博为峰
 */
public class Test {
    public static void main(String[] args) {
        UUID uuid = UUID.randomUUID();
        System.out.println("uuid = " + uuid);
//        System.out.println(uuid.toString().replace("-", ""));
//        System.out.println(uuid.toString().replace("-", "").toUpperCase());
        String substring = uuid.toString().substring(0, uuid.toString().indexOf("-"));
        System.out.println(substring);
    }
}
